package com.lanxiao.cloud.modules.log.application.dto;

import com.lanxiao.cloud.common.core.enums.OperationType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 * @author ：qiaoliang
 * @date ：2021-10-15
 */
@ApiModel("日志查询模型")
public class LogQuery {
  @ApiModelProperty(value = "服务")
  private String service;
  @ApiModelProperty(value = "操作者")
  private String createBy;
  @ApiModelProperty(value = "操作类型")
  private OperationType type;
  @ApiModelProperty(value = "开始时间")
  private Date startTime;
  @ApiModelProperty(value = "结束时间")
  private Date endTime;
  @ApiModelProperty(value = "IP地址")
  private String ip;

  private LogQuery() {
  }

  public LogQuery(String service, String createBy, OperationType type, Date startTime, Date endTime,
      String ip) {
    this.service = service;
    this.createBy = createBy;
    this.type = type;
    this.startTime = startTime;
    this.endTime = endTime;
    this.ip = ip;
  }

  public String getService() {
    return service;
  }

  public String getCreateBy() {
    return createBy;
  }

  public OperationType getType() {
    return type;
  }

  public Date getStartTime() {
    return startTime;
  }

  public Date getEndTime() {
    return endTime;
  }

  public String getIp() {
    return ip;
  }

}
